<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
                  <script type="text/javascript">
                  var data = {"ReadSession":"https://stackauth.com/auth/global/read-session","Request":"PUogJjqbnGB8UlYhU/es4mSCtyNQqwl0y9sdzzU+6aVlJJ953bSH4Rn/0J/bdY5nVjcJtuF6p0qjD+63VHs5XQ==","Nonce":"JAOEUQAAAADrbxircXuZyQ==","Referrer":"http://stackoverflow.com/questions/12451399/how-to-render-zf2-view-within-json-response","StorageName":"GlobalLogin"};

                  var toMsg = window.parent;

                  var obj = localStorage.getItem(data.StorageName);
                  if(obj != null) {
                  var req = new XMLHttpRequest();
                  req.open('POST', data.ReadSession+'?request='+encodeURIComponent(data.Request)+'&nonce='+encodeURIComponent(data.Nonce)+'&seriesAndToken='+encodeURIComponent(obj), false);
                  req.send(null);
                  
                    if(req.status == 200){
                      toMsg.postMessage(req.responseText, data.Referrer);
                    }else{
                      toMsg.postMessage('No Session', data.Referrer);
                    }
                  }else{
                    toMsg.postMessage('No Local Storage', data.Referrer);
                  }
                  </script>
                  </head><body></body></html>